package simple;

import java.util.Scanner;
public class NotepadDemo {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {

		INotepad notepad = new SimpleNotepad();
		INotepad notepad2 = new SecuredNotepad("Az sum !");
		
		notepad.addTextToPage(1, "text1");
		notepad.addTextToPage(2, "text2");
		notepad.addTextToPage(3, "text3");
		notepad.printNotepad();
		
		notepad2.addTextToPage(1, "text");
		notepad2.addTextToPage(2, "text1");
		notepad2.addTextToPage(3, "text2");
		notepad2.addTextToPage(4, "text3");
		notepad2.printNotepad();
		notepad2.removeText(3);
		notepad2.printNotepad();
			
			
			
			
		
			
			
			
		
			
		
	}
}
